#ifndef __0BBCA93C_641A_4485_B668_429C7F0A4EBE__
#define __0BBCA93C_641A_4485_B668_429C7F0A4EBE__

#include "../import/head.h"
#include "../tools/head.h"

/////////////////////////////////////////////////////////////////////////////////////////
// 

namespace xos
{
    class aio_impl;

    class aio_thread
    {
    public:
        aio_thread( aio_impl * pAioImpl );
        ~aio_thread();

    protected:
        static void * thread( void * lpData );
        int run( int nNum );

    public:
        bool m_bQuit;

    protected:
        struct epoll_event m_event[1024];
        aio_impl * m_pAioImpl;
        i_thread * m_pThread;

    public:
        int init();
        int term();
    };
} // xos

#endif // __0BBCA93C_641A_4485_B668_429C7F0A4EBE__
